package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.iwhalecloud.citybrain.flow.platform.manager.application.service.impl.EmbedOperateManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lilh
 * @date 2021/4/6 14:10
 */
@RestController
@RequestMapping("/embed")
public class FormEmbedController {

    @Autowired
    private EmbedOperateManager operateManager;

    @GetMapping("/getDetailPage")
    public void redirectIframeDetailPage(HttpServletRequest request, HttpServletResponse response) throws Exception {
        operateManager.doOperate(request, response);
    }
}
